<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<table id="tt" class="easyui-datagrid" singleSelect="true" style="height:auto;">  
	<thead>  
		<tr>
			<th field="人数" width="70" align="right">人数</th>
			<c:forEach items="${spt.columns}" var="col" varStatus="status">  
			<th field="${col}" align="center" width="70">
			<c:choose>	
				<c:when test="${status.index eq index}">
				<b style="color: #15428B">${col}</b>
				</c:when>
				<c:otherwise>
					${col }
				</c:otherwise>
			</c:choose>
			</th>  
			</c:forEach>
			<th field="总计" width="80" align="center"><b>总计</b></th>                          
		</tr> 
	</thead>                             
	<tbody> 
	<c:forEach items="${spt.datas}" var="data" varStatus="s">                             
		 <tr>
			<td>${spt.rowTypes[s.index]}</td>
			<c:forEach items="${data}" var="price">
			<td><fmt:formatNumber value="${price}" pattern="0"/></td>
			</c:forEach>
			<td>
			<c:choose>
				<c:when test="${empty totalPrices or totalPrices[s.index] eq 0}">-</c:when>
				<c:otherwise><b><fmt:formatNumber value="${totalPrices[s.index]}" pattern="0,000"/></b></c:otherwise>	
			</c:choose>
			</td>           
		 </tr>
	 </c:forEach>                         
	</tbody>                             
</table>
<div style="font-size: 14px;margin: 5px;">订单总额（人民币）：<span style="text-decoration: underline">&nbsp;<fmt:formatNumber value="${totalSumPrice}" pattern="0,000"/>&nbsp;</span>&nbsp;元</div>
<input type="hidden" name="orderTotalAmount" value="${totalSumPrice }"/>	
